package com.vinci.task.mapper;

import com.vinci.task.entity.TbTaskInfo;
import com.vinci.task.entity.TbTaskSelfRecommendationRegistration;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 自荐报名表 Mapper 接口
 * </p>
 *
 * @author 张先生
 * @since 2021-12-11
 */
@Mapper
public interface TbTaskSelfRecommendationRegistrationMapper extends BaseMapper<TbTaskSelfRecommendationRegistration> {

    /**
     * 查询自荐人员
     * @param tbRegistration
     * @return
     */
    List<TbTaskSelfRecommendationRegistration> selectRegistration(TbTaskSelfRecommendationRegistration tbRegistration);

    /**
     * 添加自荐人员
     * @param tbRegistration
     */
    void insertRegistration(TbTaskSelfRecommendationRegistration tbRegistration);

    /**
     * 根据id查询对应任务
     * @param taskId
     * @return
     */
    TbTaskInfo selectTaskInfo(@Param("taskId") String taskId);

}
